package org.future.task.core.flow;

import org.future.task.core.handler.TransForm;

public class TransformImpl implements TransForm<FlowEntry> {
    @Override
    public FlowEntry transform(Object object) {
        if (object instanceof FlowEntry) {
            return (FlowEntry) object;
        }
        FlowEntry flowTask = new FlowEntry();
        flowTask.setTaskObj(object);
        return flowTask;
    }
}
